#!/usr/bin/ruby

# Copyright (c) 2008 Bartlett Publishing

require 'lib/machine'
require 'lib/full_machine'
require 'lib/default_machine'
require 'lib/calculation'
require 'lib/double_calculation'
require 'lib/identity_calculation'
require 'lib/selector'

m = FullMachine.new
m.load_program([[:register_load, 10, 5]])

computation = IdentityCalculation.new
selector = Selector.new(computation, m)
selector.run_selection
